﻿namespace DHJ.Cost.NumToString
{
    public static class NumToStringHelper
    {
        public static string NumToString(int num, int len = 0)
        {
            var l = num.ToString().Length;
            if (len == 0 || len <= l)
                return num.ToString();

            var str = "";
            for (var i = 0; i <= len - l; i++) str += "0";

            return str + num;
        }
    }
}